package com.thp.bigdata.zkdst;

public class Test {
	
	public static void main(String[] args) {
		System.out.println("主线程开始了...");
		
		Thread thread = new Thread(new Runnable() {
			@Override
			public void run() {
				System.out.println("线程开始了...");
				while(true) {
					
				}
			}
		});
		thread.setDaemon(true);
		thread.start();
	}
}
